import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import { LayoutIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";

const Home: Array<RouteObject> = [{
  element: <LayoutIndex />,
  meta: {
    title: "首页"
  },
  children: [
    {
      path: "/sys/home",
      element: lazyLoad(React.lazy(() => import(`@/views/home/index`))),
      meta: {
        requiresAuth: true,
        title: "首页",
        key: "/sys/home"
      }
    }
  ]
}];

export default Home;

